<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:pr="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/WEB-INF/facelets/employeetemplate.xhtml">
        <ui:define name="employeecontent">
            <ui:param name="title" value="Admin"/>
            
            <h1>This is countstock.xhtml</h1>
            
            

            <h:form id="form" prependId="false">
                
                <!--h:panelGrid id="addstock" columns="2"-->
                    

                    <h:outputText value="Product Name: #{stockBackingBean.product.fullName}"/><br/>
                    <h:outputText value="Current stock: #{stockBackingBean.stock}"/> <br/>
                    <h:outputText value="New count:"/><pr:inputText id="count" value="#{stockBackingBean.newCount}"><br/>
                        <f:validateLongRange minimum="0" maximum="1000000"/>
                        <pr:ajax event="blur" update="growl"/>
                    </pr:inputText>

                <!--/h:panelGrid-->

            
                    <pr:growl id="growl" showDetail="true"/>
                    <pr:commandButton value="Save Changes" update="@form" type="Submit" action="#{stockBackingBean.saveCount()}" ajax="false">
                    </pr:commandButton>
            
                <br/>

                <br/>

            </h:form>



        </ui:define>
    </ui:composition>
</html>

